<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WatchLog extends Model
{
    use HasFactory;
    protected $table="watch_log";
    protected $fillable = [
        "watch_time","user_phone","user_id","goods_id","location_id",
    ];

    public function user(){
        return $this->belongsTo(User::class);
    }

    public function goods(){
        return $this->belongsTo(WlGood::class);
    }
}
